<template>
    <div>
        <el-badge v-for="num in total" :key="num" :value="num<10?'0'+num:num" class="item">
        </el-badge>
    </div>
</template>

<script>
    export default {
        data(){
            return{
                total:20
            }
        }
    }
</script>

<style scoped>
.el-badge{
    line-height: 30px;
}
</style>